package Ar;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class No_2 {
    public static void main(String[] args) {
        int[] number1 = {21,321,453,21,421,321,43,23,87,54};
        System.out.print(Arrays.toString(number1)+"\t\n");

        System.out.println("===============================");
        String [] names = {"早上好","吃了吗","中午好","春困","夏乏","秋无力","冬日","正好眠","吃火锅","海底捞"};
        System.out.println(Arrays.toString(names));
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入一个单词：");

        String word = sc.next();
        boolean isname = false;
        for (int i = 0; i <= names.length-1; i++) {
            if (word.equals(names[i])){
                isname = true;
                break;
            }
        }
        if (isname){
            System.out.println("YSE");
        }
        else {
            System.out.println("NO");
        }

    }
}
